From 6ebfc91b5d2fe968b3b8010ab3fb993b5ed7ef95 Mon Sep 17 00:00:00 2001 From: "emellor@leeni.uk.xensource.com" Date: Tue, 21 Mar 2006 18:57:23 +0100 Subject: [PATCH] The patch fixes a problem when testing for device /dev/tpm0. The API call os.path.exists() must be called instead of os.path.isfile(). Signed-off-by: Stefan Berger --- tools/xm-test/tests/vtpm/vtpm_utils.py | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/tools/xm-test/tests/vtpm/vtpm_utils.py b/tools/xm-test/tests/vtpm/vtpm_utils.py index 34e4afd583..d855e32311 100644 --- a/tools/xm-test/tests/vtpm/vtpm_utils.py +++ b/tools/xm-test/tests/vtpm/vtpm_utils.py @@ -8,7 +8,7 @@ from XmTestLib import * if ENABLE_HVM_SUPPORT: SKIP("vtpm tests not supported for HVM domains") -if not os.path.isfile("/dev/tpm0"): +if not os.path.exists("/dev/tpm0"): SKIP("This machine has no hardware TPM; cannot run this test") status, output = traceCommand("ps aux | grep vtpm_manager | grep -v grep") -- 2.30.2